package cn.bughub.model.vo.user;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 用户详情响应实体类
 *
 * @author zwj
 * @date 2024-09-25
 */
@NoArgsConstructor
@Data
public class UserDetailResponseVo {
    
    private Integer id;
    
    private String username;
    
    private Boolean enable;
    
    private String createTime;
    
    private String updateTime;
    
    private ProfileDTO profile;
    
    private List<RolesDTO> roles;
    
    private CurrentRoleDTO currentRole;
    
    @NoArgsConstructor
    @Data
    public static class ProfileDTO {
        
        private Integer id;
        
        private String nickName;
        
        private Object gender;
        
        private String avatar;
        
        private Object address;
        
        private Object email;
        
        private Integer userId;
    }
    
    @NoArgsConstructor
    @Data
    public static class CurrentRoleDTO {
        
        private Integer id;
        
        private String code;
        
        private String name;
        
        private Boolean enable;
    }
    
    @NoArgsConstructor
    @Data
    public static class RolesDTO {
        
        private Integer id;
        
        private String code;
        
        private String name;
        
        private Boolean enable;
    }
}
